from rest_framework.routers import DefaultRouter, SimpleRouter
from .views import SectionModelViewSet
urlpatterns = []
# 1. 创建router实例
router = SimpleRouter()

# 配置路由.
router.register('sections', SectionModelViewSet, basename='sections')
urlpatterns += router.urls
